package command;

import util.BookStorage;
import util.IO;

public class ViewBooksCommand implements Command {

    public ViewBooksCommand() {

    }

    public static String getBooksList() {
        return BookStorage.outputBooksList();
    }

    @Override
    public void run() {
        showBooksList();
    }

    public void showBooksList() {
        IO.flush();
        IO.output(getBooksList());
    }
}
